package com.liuhaoqi.raletiveblog.controller;

import com.github.pagehelper.PageInfo;
import com.liuhaoqi.raletiveblog.entity.Blog;
import com.liuhaoqi.raletiveblog.entity.Tag;
import com.liuhaoqi.raletiveblog.entity.dto.BlogDto;
import com.liuhaoqi.raletiveblog.service.BlogService;
import com.liuhaoqi.raletiveblog.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author liuhaoqi
 * @Date 2020/4/16 12:23
 * @Version 1.0
 */
@Controller
public class BackController {
    @Autowired
    BlogService blogService;
    @Autowired
    TagService tagService;


    @GetMapping("/about")
    public String toAbout() {
        return "about";
    }

    @GetMapping("/login")
    public String toLogin() {
        return "admin/login";
    }

    @GetMapping("/main")
    public String toMain() {
        return "main";
    }

    @GetMapping("/changePwd")
    public String tochangePwd() {
        return "changePwd";
    }

    @GetMapping("/userInfo")
    public String touserInfo() {
        return "userInfo";
    }

    @GetMapping("/newsList")
    public String tonewsList() {
         return "newsList";
    }

    @GetMapping("/images")
    public String toimages() {
        return "images";
    }
    @GetMapping("/404")
    public String to404() {
        return "404";
    }

    @GetMapping("/admin/layer_model3.html")
    public String tolayer_model3(Model model) {
        return "admin/layer_model3";
    }


}
